/* 
 * File:   Polygon.h
 * Author: lgr013
 *
 * Created on 13 de septiembre de 2014, 14:57
 */

#ifndef POLYGON_H
#define	POLYGON_H

#include "Object.h"
#include "ObjFactory.h"
#include "SkinFactory.h"
#include "Dot.h"
#include <Box2D/Box2D.h>

class Polygon {
private:
    Object *object;
    Dot *dot;
    int scale;
    int sides;

public:
    Polygon();
    Polygon(ObjFactory *objFactory, bool flagStatic, float x, float y, int scale, int sides, float mass, float rotation);

    void draw(Uint8 r,Uint8 g,Uint8 b,Uint8 a);

    b2Vec2 getPosition();
    float getAngle();
    float getAngularVelocity();
    
    void setAngularVelocity(float velocity);    
    
    virtual ~Polygon();

};

#endif	/* POLYGON_H */

